package com.sctvcloud.renhe.ui.utils;

import android.content.Context;
import android.os.Handler;
import android.view.ViewGroup;

import com.sctvcloud.renhe.ui.widget.BasePlayerView;
import com.shuyu.gsyvideoplayer.utils.OrientationUtils;

import java.io.File;
import java.lang.ref.WeakReference;
import java.util.Map;

/**
 * Created by liuyu on 2017/9/23.
 */

public class ItemPlayerUtil {
    private WeakReference<BasePlayerView> playerReference;

    private String TAG = "NULL"; //播放的标志

    private ViewGroup fullViewContainer;
    private ViewGroup listParent;//记录列表中item的父布局
    private ViewGroup.LayoutParams listParams;
    private OrientationUtils orientationUtils;
    private SampleListener listener;

    private String url;
    private Context context;
    private File cachePath;

    private String mTitle;

    private Map<String, String> mapHeadData;

    private int playPosition = -1; // 播放的位置
    private int speed = 1; // 播放速度，仅支持6.0
    private int systemUiVisibility;
    private boolean isFull; //当前是否全屏
    private boolean isSmall; //当前是否小屏
    private boolean hideStatusBar; //是否隐藏有状态bar
    private boolean hideActionBar; //是否隐藏有状态ActionBar
    private boolean isLoop;//循环
    private boolean hideKey = true;//隐藏按键
    private boolean needLockFull = true;//隐藏按键
    protected boolean needShowWifiTip = true; //是否需要显示流量提示


    private int[] listItemRect;//当前item框的屏幕位置
    private int[] listItemSize;//当前item的大小


    private boolean fullLandFrist = true; //是否全屏就马上横屏
    private boolean autoRotation = true;//是否自动旋转
    private boolean showFullAnimation = true;//是否需要全屏动画

    private Handler handler = new Handler();


}
